import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import store from './redux/store'
import {
    Provider
} from 'react-redux'

//直接在渲染App组件的时候，直接套一层Provider组件，可以直接向所有的App内的组件供应store
ReactDOM.render(<Provider store={store}><App /></Provider>, document.getElementById('root'));

